Fixed issue #6 where array traversing was buggy.