Fix max Profit compare