Fixing array indicies.