Fix on_hit_packet exception