fixed namespace calculation #1100

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