Fix portal bugs in new viewing setup.