Fixed Authorization Bug