fix issue #227