fix drawing coastline on firefox