Fix crash with the new beds mod