fix escaping for map