fix serialization problem with ClassTag