Resolved problem with invoices number generator