fix update box count