fix onlyif condition