fix incorrect equality comparison
refs #637