frame select bug fix