log rotate fix