                                     }
                                     else
                                     {
-
                                         Logger.log.debug("Upload \(weakSelf.localIdentifier) finished successfully")
                                     }
                                     completion?(weakSelf.creation, ErrorTransformer.errorFromResponse(nil, error: error))
-                                }
+                                })
+                                
                             })
                         })
                     })

            return
        }
        
        let request = GallerySubmissionRequest(galleryId: creationData.galleryId!, creationId: creation!.identifier)
        let handler = GallerySubmissionResponseHandler()
        {
            [weak self](error) -> Void in

                                
                                weakSelf.delegate?.creationUploadSessionChangedState(weakSelf)
                                

                                    weakSelf.uploadToGallery(error, completion: { (error) in
                                        
                                    weakSelf.error = error
                                    weakSelf.isActive = false

                                    if let error = error
                                    {
                                        Logger.log.error("Upload \(weakSelf.localIdentifier) finished with error: \(error)")
