fix bug of 'select variant'

Signed-off-by: Jinggit <jingghster@gmail.com>