small fix at undo for all blocks mode