fix safety_factor