Filter errors properly for #9