fixed the string exception