Fixed ssl detection