fixed a bug where one unit would end up with all the money.