fix the bug for error compilation.