related to issue #39
fix one bug