fixed the string conversion