fix for map layer bug with width