Fix a minor logic flaw in one of my previous commits