Fixing log rotation