binder: fix wrong if definition