Fixed generating short invoices.