Fixed issue where room name is persisted out of function scope