fix automatic escape problem