fix gain-loss percentage