Fix for "Joint/model not in model list" errors (from having more than one model root).