fix #1374
closes #1374