Fixing a bug with upgrading charges.