fixed bug in twitter agent