Not a glitch. CI never gets spent. The numbers on the machine tree are milestones: once your CI reaches that number the skill is yours, and you keep all of it. Money skills are the ones that actually cost you money. The tree shows that number like a price though, so I totally get why it looked like a bug.