fixing issues with map layering