diff --git a/runtime/starpu/codelets/codelet_zlaswpc.c b/runtime/starpu/codelets/codelet_zlaswpc.c
index bcef0c2b21ff95b91e7e8e5f2bd07952843bff73..6b468fb8b62cb39de982b13ec7f6b6b4ce84037c 100644
--- a/runtime/starpu/codelets/codelet_zlaswpc.c
+++ b/runtime/starpu/codelets/codelet_zlaswpc.c
@@ -212,7 +212,7 @@ void INSERT_TASK_zlaswpc_set( const RUNTIME_option_t *options,
 #else /* defined(CHAMELEON_STARPU_USE_INSERT) */
 
 void INSERT_TASK_zlaswpc_set( const RUNTIME_option_t *options,
-                              cham_dir_t dir, int n0, int k,
+                              cham_dir_t dir, int k, int n0,
                               const CHAM_ipiv_t *ipiv, int ipivk,
                               const CHAM_desc_t *A, int Am, int An,
                               const CHAM_desc_t *B, int Bm, int Bn )
diff --git a/runtime/starpu/codelets/codelet_zperm_allreduce_col.c b/runtime/starpu/codelets/codelet_zperm_allreduce_col.c
index f1ad9ff9bcc1217410373d77162eedac87a3f578..4ee41890f09387ea5e258242ec4961901bc5fab9 100644
--- a/runtime/starpu/codelets/codelet_zperm_allreduce_col.c
+++ b/runtime/starpu/codelets/codelet_zperm_allreduce_col.c
@@ -149,7 +149,7 @@ INSERT_TASK_zperm_allreduce_send_col( const RUNTIME_option_t *options,
                                       int                     dst,
                                       int                     m )
 {
-    INSERT_TASK_COMMON_PARAMETERS_CLNULL( zperm_allreduce_send, 1 );
+    INSERT_TASK_COMMON_PARAMETERS_CLNULL( zperm_allreduce_send_col, 1 );
 
     starpu_cham_exchange_init_params( options, &params, dst );
     starpu_cham_exchange_handle_before_execution( options, &params, &nbdata, descrs,
@@ -196,7 +196,7 @@ INSERT_TASK_zperm_allreduce_recv_col( const RUNTIME_option_t *options,
     starpu_cham_exchange_handle_before_execution( options, &params, &nbdata, descrs,
                                                   RTBLKADDR( U, ChamComplexDouble, m, src ),
                                                   STARPU_R );
-    starpu_cham_register_descr( &nbdata, descrs, RUNTIME_invp_getaddr( ipiv, ipivk ), STARPU_R );
+    starpu_cham_register_descr( &nbdata, descrs, ipiv_handle, STARPU_R );
 
     task = starpu_task_create();
     task->cl = cl;