another fix to invoicing