Distance when connected to ebike

Hi, 

When the ebike is connected to the Edge 1040, the ebike distance is used instead of the GPS distance, in the end the distance is 10% greater than the real one, how can I prevent this from happening?

The ebike is a specialized turbo levo 2018

Thank you