Minor bug fixes for twitter implementation