fix #1825
Fix r2 -C crash (thanks zlul!)