Fix authentication issues (hopefully)