Fix create adapter