Fixed bug were escape was being escaped with wrong value