fixed issue #1119