fix backward compatability bugs for hashtag/hashtags env variable