Fix bug for empty namespace.