fixed issue #170