fix cell lock proected when undo-redo issue