fix cannot catch IndexError bug
a workable receive task method