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

    
    func saveDetailMovie(detailMovie: MovieDetail?, forId: Int!) {
        let userDefaults = UserDefaults.standard
        userDefaults.setValue(detailMovie?.toJSONString(), forKey: String(format:DefaultKey.detail.rawValue, forId))
        userDefaults.synchronize()
        NSLog("Objeto armazenado nas preferencias!")
    }
    
    func getDetailMovie(forId: Int!) -> MovieDetail? {

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