fix delete diagnosis