Fix the bug. Correctly register that some charges have been used.

Fixes #7408