fix catagory bugs