Corrected issues with regards to undo/redo tools.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>