Added an attempt to fix an issue with portals