fix trapped room bug