Fixes portal rendering.