Fixed infinite 'Unauthorized' message