fixed null_pointer on profitability