fix hang in loop by twitter-errors