fixed exception on empty room