Fix incorrect if validation.