fix for historyItem serialization