fixed mistake in set null