Fixed a bug it Task model