Fixed overflow bug in UT unpacker