Fix some bugs with `config.reportjoins`