Fixed bug in loadPack