small bug fix in function dispatcher for logical operators