fixed bug with namespace ranges