Fixed conditional spacing in link_cells method