fix again based on https://github.com/qgis/QGIS/commit/48ed1cf5a2caaafe21f61205f38d97b5a9cc01ce (thanks again @jef-n)