Fixes deleting. Ugh.