If the serializer is run twice, the namespace would only be added the first time. You need to reset the flag, for example in the ``prepare`` method.