Fix usage of proxy in only_if