fixed serialization problem --KW