fixed the drawing, and fixed the map layer's with arrays