fixed the room lock issue