fix a mistake in delete