minor fix in serialization

now save\load work just fine