fix bug: done position cause the task id range