anchor.diff:                  '              </button>' +
                   '              <button id="replacesable_button_edit" style="width: 49%; margin-top: 10px; float: right" class="btn-warning btn" onclick="modify_element()">UPDATE\n' +
                   '              </button>';
  -            document.getElementById('replacesable_button_edit').outerHTML = delete_modify;
  -            document.getElementById('replacesable_second_button_edit').outerHTML = delete_modify;
  -
  -
  -            OVERALL_MODE = false;
  +            var btn1 = document.getElementById('replacesable_button_edit');
  +            btn1 ? (btn1.outerHTML = delete_modify) : null;
  +            var btn2 = document.getElementById('replacesable_second_button_edit');
  +            btn2 ? (btn2.outerHTML = delete_modify) : null;
  +
           }
   
           var actor = document.getElementById('actor');
  
positive.code:         $("body").removeClass("modal-open");
          $('body').css('overflow', 'auto');
          $('body').css('position', 'relative');
      }
  
      function close_emblem_modal() {
  
negative.code:             $("body").removeClass("modal-open");
              $('body').css('overflow', 'auto');
              $('body').css('position', 'relative');
              OVERALL_MODE = false;
          }
  
          if (event.target === modal) {
  