Fixed a bug with expanding rows.