fix bug: escape string was incorrect