fix issue #1068

fix issue #1068