Fix a regression bug about extension name and type