‘Courts must remedy injustices caused by their errors’