how to stop repeating mistakes