fixed namespace generation