Fix pointer access in CreateString