Fix deleting media