Fix issue where filters would not run for `--ref` lines.