Attempt at fixing array bug through terrible serialisation