fix unpackNum