Markers behave better when changing between tabs