bugfix from git: j->i