fix legalized binary operators