Fixed a serialisation issue.