Fixed cell rendering out of bounds.