fix the bug of select via value

fix the bug of select via value,-1 removed