staxwriter error fix