Fix delete in adapter