Undo function is not working for first change made after boot [SOLVED]