[FIX] adding namespace declaration on wrong level after insert
minor
Merge pull request #648 from LukasK/fixes

[FIX] adding namespace declaration on wrong level after insert