[#3307] Fix thanks to @xabbuh