fixed issue #271