Glitch fix when exporting tilemap