fix for isLinked in Portal object very severe bug.