Fixed investing bug