Fixed application of expdiag