Fix Compile and Fixed mistake in Binary Resistance (Big Mistake)