fix onlyif declaration