human
Solve the following python programming problem given the following code:
def _make_dynamic_report(report_config, keyprefix) : 
    'create a report class the descends from a generic report class but has specific parameters set' 
    report_key = (keyprefix + [report_config.report, report_config.name]) 
    slug = hashlib.sha1 (':'.join (report_key)).hexdigest () [: 12] 
    kwargs = dict (report_key.kwargs) 
    kwargs.update ({ 
        'name' : report_config.name, 
        'slug' : slug, 
}) 
    if report_config.previewers_only : 
        @ classmethod 
        def show_in_navigation(cls, domain = None, project = None, user = None) : 
            return (user and user.is_previewer ()) 
kwargs ['show_in_navigation'] = show_in_navigation 
try : 
        metaclass = to_function (report_config.report, failhard = True) 
except StandardError : 
        logging.error (('dynamic report config for [%s] is invalid' % report_config.report)) 
        return None 
return type (('DynamicReport%s' % slug), (metaclass,), kwargs) 

    
    

    Fix the buggy line: kwargs = dict (report_key.kwargs)
assistant
#Here is Python program to fix the buggy line: kwargs = dict (report_key.

kwargs = dict (report_config.kwargs)