fixed retryTask for task with multiple inputs