Personnal functions+ correct bug if one item is in a category