wrong generated text fixed