fixed an index error that left off one chunk