portal bug fix