fix for string index out of bounds