[COOK-2733] - fix invalid only_if