Adapter working when imported directly