fixing for QGIS 2.0