Fix for wrong row-select after click when rows have been removed