@konhacas, when are your sheep escaping? @yang put fixes into the game so animals say inside their zones, regardless of if they are fenced in or not. The only time they should be able to leave is if your shepherd fed the same animal in a different zone: they will go eat food in that zone and then return.
If you are seeing this happen at another time, please upload the affected save so it can be reviewed.
To upload a save, locate the folder in C:\Program Files (x86)\Steam\steamapps\common\Stonehearth\saved_games (assuming a default Steam install), zip the individual save’s folder (not the entire saved_games folder), and upload it. If the *.zip is less than 10 MB, feel free to upload it directly to the Discourse. If larger, please upload it to a cloud storage site like Dropbox, Google Drive, File Dropper, etc. and post the sharing link here.