fixed error in string type generation