Compare with known value; fixed bug