fix bug when not enough cash to invest