removed unnecessary open of pack index on pack.close