bug fix room javascript