fix false-negative error status