fixed race-condition on joining a room, fixed ruby1.9 related bug