fix wrong errors count