fixed issue #393