fix the escape rule