fix for ifv and ifvar logic difference