fixed bugs for twitter data parsing