fix portaldirection