fixed issue #270