Fix accounting issue #767