fix some visual glitches