             url: "https://api-content.dropbox.com/1/files_put/sandbox/meta.seed"
             data: JSON.stringify(result[0])
             beforeSend: (xhr) ->
-              xhr.setRequestHeader 'Authorization', 'Bearer ' + localStorage.Token
+              xhr.setRequestHeader 'Authorization', 'Bearer ' + Sync.oauth.access_token
           ).done (data) ->
             console.log("all done! Delete the queue")
             Sync.queue = {"Note": {}, "Notebook": {}}

            url: "https://api-content.dropbox.com/1/files_put/sandbox/meta.seed"
            data: Sync.exportData()
            beforeSend: (xhr) ->
              xhr.setRequestHeader 'Authorization', 'Bearer ' + localStorage.Token
          ).done (data) ->
            console.log("all done! Delete the queue")
            Sync.queue = {"Note": {}, "Notebook": {}}

      dataType: "json"
      url: "https://api-content.dropbox.com/1/files/sandbox/meta.seed"
      beforeSend: (xhr) ->
        xhr.setRequestHeader "Authorization", "Bearer " + Sync.oauth.access_token
    ).done((data) ->
      console.log(JSON.parse(Sync.exportData()), data, Sync.queue)
      result = Sync.merger(JSON.parse(Sync.exportData()), data, Sync.queue)
