Proper assembly thermostat housings.

You can't use an o-ring to seal the housing unless it is made for one. Yours does not appear to be. There needs to be an actual groove in it where the o-ring sits. The groove has a specific OD, ID, and depth to fit a specific size of o-ring, which is normally supplied with the housing.