fix to retrieving the list of errors