Fix portal  bug