fix bug of extension