fix task run collection bug