#1 fix bug of count when reset extension