Fixed bad check in delete of snapshots