Fixed authorization bug.