fix issue #332