Fixed limbotime and a bug in bed spawns.