Fixed extension bugs.