Fix the bug for volt compiler to throw exception