Fix serialisation warning