After replay(), selectLayer(last). This fixes the continuation for editing on the last layer