I fixed an array out-of-bounds exception.