Bug fix for invoice functionality.