Wrong total elevation in routes on Edge 840, but it is correct in Connect App

The routes are imported from RidewithGPS. In Garmin Connect App, the total elevation is correct, but after they are pushed to Edge 840, it shows a way off elevation. (50% too much)

For example: