Fixed json serialization problem.