fix adapter var not found