Fixed serialization issue.