Fix cell merge bug.

This closes #12.