Fixed escape function.