Fix OpenLayers bug