fixed bugs in Twitter.java