fix a bug in the twitter formatter