fix bug in resized vector unpack