fix the onlyif test