fix a bug about global namespace