disable portals before finding a path