fix bug in tweet generator