fixed task.complete