fix master - #7274 brokes it

cc @DeepDiver1975 @icewind1991