fixed bug probably stopping investing