Fix typo in a condition.

Thanks @cc9cii for spotting this.