Fix a bug, wrong select index

Signed-off-by: Sunjae Kim <sunjae.kim@windriver.com>