Bug solving

Solving of a bug which cause undo and redo to work incorrectly for
multiple undo and redo,
remove replicate line, change wrong return message