fixed a bug that happen when a title cell is selected.