Replace all: Fix undo stack

Replace all is one single action