fixed infinite loading on categories