Fix double elimination tournament bug and improve unexpected error re…