Fixed some bugs

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