fixed translate_packet