This should be changed to `if match_legend`.