fix selection for active element