Fix the only_if clause