Fix #1037 - Fix segfault in iij, irj, ..