Bug fix ssl verification