The `doc` variable here raises a `NameError`, should probably be `fallback_doc`.