Fix incorrect comparison-as-assignment.
Fix an overloaded virtual function.