fix loading the deviceid and access token