Commit before changing to OpenLayers