Make QGIS 2.0 compatible/Fixed inverse transform