fixed select bug