fix the bug when first click on the category