fixed issue #171