fix bug in Task model

fix bug in Task model