fix search highlighting bug of root node
add specific save function to defer alteration of baseSpec