The gain on sales of my ESPP shares is included in my W2 but the amount is getting added when I complete the 1099B. How do I fix this?

The gain on the sale of my ESPP shares is being reported twice. Once in the W2 and once through 1099B. How do I report the 1099B as to not report the gain twice?