fix bug, thanks to Sokomine on minetest forums

ref: https://forum.minetest.net/viewtopic.php?pid=128580#p128580