FIX: RuntimeError (can't add a new key into hash during iteration) in logs