bug fix for int to str conversion