Fixed __receive_packet method