Fixed batch invoicing crash.