modify define to static and const variable
fix typo