fixed some minor bugs in debug that was causing dorm to crash