select case  bug