keySet serialization bug fix