fix for bug in accounting