fix the string conversion