             linksTextFieldView.textField.text = urls.joinWithSeparator(", ")
         }
 
-        let updateLinksFunction = debounce(0.5) { [unowned self] in
-            let links = self.linksTextFieldView.textField.text ?? ""
+        let updateLinksFunction = debounce(0.5) { [weak self] in
+            guard let sself = self else { return }
+            let links = sself.linksTextFieldView.textField.text ?? ""
             ProfileService().updateUserProfile(["external_links": links], success: { user in
-                self.updateCurrentUser(user)
-                self.linksTextFieldView.setState(.OK)
+                sself.updateCurrentUser(user)
+                sself.linksTextFieldView.setState(.OK)
             }, failure: { _, _ in
-                self.linksTextFieldView.setState(.Error)
+                sself.linksTextFieldView.setState(.Error)
             })
         }
 

        nameTextFieldView.label.setLabelText(InterfaceString.Settings.Name)
        nameTextFieldView.textField.text = currentUser?.name

        let updateNameFunction = debounce(0.5) { [unowned self] in
            let name = self.nameTextFieldView.textField.text ?? ""
            ProfileService().updateUserProfile(["name": name], success: { user in
                self.updateCurrentUser(user)
                self.nameTextFieldView.setState(.OK)
            }, failure: { _, _ in
                self.nameTextFieldView.setState(.Error)
            })
        }


        bioTextView.attributedText = ElloAttributedString.style(currentUser?.profile?.shortBio ?? "")
        bioTextView.delegate = self

        bioTextViewDidChange = debounce(0.5) { [weak self] in
            guard let sself = self else { return }
            let bio = sself.bioTextView.text
            ProfileService().updateUserProfile(["unsanitized_short_bio": bio], success: { user in
                sself.updateCurrentUser(user)
                sself.bioTextStatusImage.image = ValidationState.OK.imageRepresentation
            }, failure: { _, _ in
                sself.bioTextStatusImage.image = ValidationState.Error.imageRepresentation
            })
        }
    }
