fix issue #1328