fix more portal bugs