 after converting nfa to dfa, converted dfa is not saving in the localStorage immediately, and if refresh the browser, previous nfa will be showing