Thermostat housing leaking

Permatex an O-ring on one side. Torque down until you see it squeeze to about 1/2 its original thickness then stop. If it holds, then put sealant on the bolts and do it again. No cracks in the casting is there?