Fix slight problem with deleting