Fix extension initialising