tools check function fix
fix Issue #17

Signed-off-by: pussbb <pussbb@gmail.com>