Fixed an issue with connecting to Twitter API