Like anything it just takes practice. You fix the knit side from the knit side and the purl from the purl side. I find a crochet hook the easiest myself.
Here's some help on fixing mistakes.
This is a good one done with a crochet hook.