fix wx assertion (nothing selected)