select bug fix