We have checked your provided code, but we are unable to reproduce the mentioned issue in our end. Could you please check the sample in following location?
If still the problem persists, please revert back the provided sample based on your application along with the replication procedure to showcase the issue at our end. This would be more helpful for us to provide better solution at the earliest
Please let us know, if you have any other concerns.
Regards, Ashokkumar B.