fix diag eval api