solve auto save issue