fix PaaS mode