Fix console error when completing task.