fix empty targets in get_stats