Fix compile error.
Report runtime error.
More detail runtime error informantion of global variable.