To reset errors