Fix conditional in match command