I tried to reproduce your errors but could not in my case (withyour minimal example) everthing works just fine. See my snaps attached.
Which version of the system (please make a system report via "About -> Generate Report") and the SDK are you using?
... View more