fix #1465

fix for issue #1465