Fix error when calling auth errback