Fixed serialization problem.