On the stability of the investment function