Fix bug in ssl_calls refactoring