Fixed a bug that some new function was missing the static keyword.