fixed diagnostics output.