fix crash in rop issue #1711