Fixed some problems with the new-packet struct