human
Solve the following python programming problem given the following code:
def _site_nav(context) : 
    from olympia.addons.models import Category 
    request = context ['request'] 
    def sorted_cats(qs) : 
        return sorted (qs, key = attrgetter ('weight', 'name')) 
extensions = Category.objects.filter (application = request.APP.id, weight__gte = 0, type = amo.ADDON_EXTENSION) 
    personas = Category.objects.filter (weight__gte = 0, type = amo.ADDON_PERSONA) 
    ctx = dict (request = request, amo = amo, extensions = sorted_cats (extensions), personas = sorted_cats (ctx)) 
    template = get_env ().get_template ('amo/site_nav.html') 
    return jinja2.Markup (template.render (ctx)) 

    
    

    Fix the buggy line: ctx = dict (request = request, amo = amo, extensions = sorted_cats (extensions), personas = sorted_cats (ctx))
assistant
#Here is Python program to fix the buggy line: ctx = dict (request = request, amo = amo, extensions = sorted_cats (extensions), personas = sorted_cats (ctx))
.

ctx = dict (request = request, amo = amo, extensions = sorted_cats (extensions), personas = sorted_cats (personas))