UI text not scaling correctly.

I am a beginner in Unity and I have a small project. In this project I have a text object on my UI Canvas, denoting a “durability” starting at 100. When the player character collides with a wall, the counter goes down by one. This works fine as long as I’m testing it. However when I build and run the program the counter goes down by 10 instead of 1. Also the two text objects above it are no longer visible. If screenshots help I can provide them. Thanks for any help I can get.

For the counter , make sure you are using integer (int ) instead of other type, and for the scale you need to check for anchors, I recommend you to see a tutorial to understnd how it works