Add a few code to avoid compile error.