Fixed bug when marker visible property changes.