fixed problem with amout spend in category and subcategory