         for (key, _) in userDefaults.dictionaryRepresentation() {
             if (key.contains("movie-tending")) {
                 userDefaults.removeObject(forKey: key)
+                userDefaults.synchronize()
                 NSLog("Objeto removido das preferencias!")
             }
         }

            if (key.contains("movie-detail")) {
                let favoriteMovie = Mapper<MovieDetail>().map(JSONString: value as! String)
                let trending = trendingForDetail(movieDetail: favoriteMovie!)
                favoriteMovies.add(trending as Any)
                NSLog("Objeto resgatado das preferencias!")
            }
        }

        for (key, value) in userDefaults.dictionaryRepresentation() {
            if (key.contains("movie-tending")) {
                let movieTrending = Mapper<MovieTrending>().map(JSONString: value as! String)
                if ((movieTrending) != nil) {
                    trendingMovies.add(movieTrending as Any)
                }
                NSLog("Objeto resgatado das preferencias!")
            }
        }
