Re-attach root method every time _definePort is called, to keep the invoker in-sync