Fixed the issue that cannot query dormitories and rooms with correct
status.