fix Issue #1145

fix Issue #1145