fix graphical glitches when built with SBT