Loop starting index issue

This should fix the issue indicated in issue #13. Cheers!