Log_packet fix