Fix bug when not authenticated