fix errors in tasks