Fix internal depr warning, spotted by leont++