Fixing next item allocation bug.