fix diag operators