Fixed model generation reflection when using a namespace