Fix bug in inventory aggregate report