Fixed bug with keeping selected state of the inserted row and column.