Fix extension retreival.