correct the mistake in the bianry query