This resolves #2, wrong checking code

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