fixed an issue with Bitbucket OAuth