fix Oauth error undefined index port: