Fixed issue with unpacking packets.