fix incorrect equality comparison
refs #713