fixing 3d-map drawing