fix for qgis 2.0