Fixed errors when not logged