selection problem fixed and tested up to 3.9