fix pretty select regression (bug 1110697)