corrected array bug
Merge pull request #2 from thorning/master

corrected array bug