Fix bug where occasionaly the delete row button did not work