fixed bugs in invoice dialogs