fix the machine bug of selection