fixed bug in twitter script