fixes some bugs related to OAuth1