small refactor
fix 1b5505843b5dbf9126ddc4b04e485c6bf5abe016
[#78005212]