Fix when deserializing removed some bytes