draw_stat_cmp: improved selection code