fixed bug with TaskModel