fixed namespace calculation #1100

fixes #1100
Merge branch 'bugfixes/tokumx-1.4'