Fixed startup bug on portal