Fix crash when indexed repr index=0