fixing mistakes done when moving to portal