Fix bug: getting global constant in namespace scope