Error with my sprites

I always get this error while undo in my drawings.

Has ocurred an error.
Can’t modify the sprite.
Is being used by another command.

And it is druving me crazy, I just can’t draw pacefully with that stuff making the process worst. How do I get rid of it?