fixed a bug in the task model

author: nhhughes