QGIS 2.0 API changes fixed