fix issue #270