Fix access token in querystring and headers bug

This is an attemp to fix #129.