fix bugs of portal