Fix a rotate log error