fix serialisation issue