fix the bug when compiling error.