Fixed bugs in entries and profit calculations.