Fix IR builder bug.