fix programmatic selection