fixed inventory custom report bug