Fix errors in tasks. Runs successfully.