Fix legacy portal

fix for legacy portal bug