fixed hasr_errors bug