fix bug for Room.js