Added setFlags to Save Button in Profile -> result exit works as
expected no matter how many times we update the profile.