Fixing the FlowCell algorithm

It now works even if we have more than one cell that overflows
to the next page...