setMode bug fix

Signed-off-by: shyeon.kim <shyeon.kim@scipi.net>