I believe you have the same issue as I did. Manipulating any layer property might be a have some unexpected behaviour. For context, go through this topic, but solution for me was this post:
I believe you have the same issue as I did. Manipulating any layer property might be a have some unexpected behaviour. For context, go through this topic, but solution for me was this post: