minor bugfixes to get run selector test to run successfully