Fixed an error ocurred when the user is not authenticated