Fixed incorrect deleted/saved logic.