Added removing extra undo log