A billing system error meant people who switched supplier or ended contracts did not get final bills within six weeks, as required.