fix issue #271