Fixed Errors in Sentence Generator