Fix spinbutton glitches