fix task set in to constructor