fix issue #374