Fix init of masterTaskId