Fix auto authorization