Bug fixes

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