Fix compileHaving.