Fix infinit loop
Fix SSL