Fixing really silly loop bug.