fixed tilemap rendering glitch