Fixed issue with modifying code in non-self modifiying function
(packet_buffer())