fixed mistake in search criteria