try to fix escaping in query