         "Rename a layout and get back to the perspectives micro-state."
         (interactive)
         (call-interactively 'persp-rename)
-        (spacemacs/layouts-micro-state))
+        (spacemacs/layouts-micro-state/body))
 
       (defun spacemacs/layouts-ms-close ()
         "Kill current perspective"

        "Update the custom-perspectives microstate and then activate it."
        (interactive)
        (spacemacs//update-custom-layouts)
        (spacemacs/custom-layouts-micro-state))

      (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-2 custom-layouts
                   :doc (concat (spacemacs//custom-layouts-ms-documentation))
                   :bindings
                   ,@bindings))))
      )
