Fix NOR gate creation