Fix delete_snapshot