fix local_packets handling in localization