Fix logic in "draw_cell_contents"