Fixed duplicate creation of namespace prefixes