Bugfix on if predicate.