Fixed a really annoying bug where data wasn't being serialised