fixed bug in extension loader