fixed buyPack

it works now!