selection handling fix due to e4 incompatibilites