Next array bug fix.