fixed bug on delete row