fixed visual glitches