fixed "discard changes?" nagging bug.

Change-Id: I08b2d3dd9413e64b924f3fb7297d01c1357abb82