portal: small fixes