Fixed the tilemap system.