Remove selected row bug fix