learning to fix errors