fix string conversion error