Fixed serializing error