Fix diagnostic messages.