Fixed task ctor after merge with new model