Fixed bug in log rotation.