Having a problem with discard changes

I guess it’s the same issue as this thread.