Fixed an issue of automatic selection of a row after a deletion of a row is done