fixed issue #182 close #182