 I am getting this error when i'm trying to use undo