Fixed a bug in roomResource