Small fix in Undo and Redo for Block

> Fixed bug: Id was incrementing unnecessarily