Fix compiling error due to Ban global method.