fix serialization issue in XSSF

the issue occurs while reading a template and save it back