Total elevation 0m

I just bought the garmin fenix 5 plus and tested it out and went on a trail run. Whene i came home i saw that the total elevation was 0m i went in to details and saw that the graph of elevation was well drawn and even had the highest and lowest elevation totaly accurete(420m and 1950m) is there a setting that i have accadantly turned off or is my watch broken?