Fixed direct webpage access bug