Fixed loop bug.
Merge pull request #1 from eataudio/dan-clean-changes

Fixed loop bug.