closed #2522: Fix compile error.