Fixes glitch while setting plot options