         "Update the custom-perspectives microstate and then activate it."
         (interactive)
         (spacemacs//update-custom-layouts)
-        (spacemacs/custom-layouts-micro-state))
+        (spacemacs/custom-layouts-micro-state/body))
 
       (defun spacemacs//custom-layouts-ms-documentation ()
         "Return the docstring for the custom perspectives micro-state."

                   (name (cdr custom-persp))
                   (func-name (spacemacs//custom-layout-func-name name)))
              (push (list binding func-name) bindings)))
          (eval `(spacemacs|define-micro-state custom-layouts
                   :doc (spacemacs//custom-layouts-ms-documentation)
                   :use-minibuffer t
                   :bindings
                   ,@bindings))))
      )

        "Rename a layout and get back to the perspectives micro-state."
        (interactive)
        (call-interactively 'persp-rename)
        (spacemacs/layouts-micro-state/body))

      (defun spacemacs/layouts-ms-close ()
        "Kill current perspective"
