fix a sub amount function of shopping_items