Fix duplicate errors

Possibly need a way of showing more than one error once more errors
exist.