fix invalid only_if commands