fix bug in ->i