fix cold shutdown