fixed bug in profit element