attempt to fix http://hub.qgis.org/issues/9184