fixed issue #374