fix match clear selection for firefox