Fixed bugs with loading extension