Fixed a bug in or2 functionality