fixed edge case for room deletion