fix openflow enabled bug