Thanks for playing!
I've been testing it a bit more, and yeah I've run into the bed issue a couple of times. I think it might be due to timing - will have to take another look at the code.