fixed the typo in escape function