fixed bug in generateTweet