Fix incorrect q q_name variable