fix find entrance bug