Almost every third or fourth time when I want to create a PR from within Sourcetree i get this error:

When I open settings it does have settings configured:

So what I need to do to fix this is change Host Type to none, then back to Bitbucket and enter my username.
Why can't sourcetree remember this?