Logical Equals fix