Fix typo in last commit

Fix typo in last commit, should ofcourse have been 0 instead of
newIndex.