fix tiling glitch