fix a ext bug