fixed bug in mergeCells