fix select bug