Fixed broken authz generation