fix #10198

see https://hub.qgis.org/issues/10198 for details