Program doesn't construct packets correctly and crashes upon retrieval of the same packet type