fixing adapter selection