fixed bug in '^' escape