fix selection after filtering