Fixed the UserDefault setting nil when the first launch