fixed missing union equals check