Fix deserializes size range check