Fix i++ with wrong place