fix issue #345