Fix errors management/2