Fix SSL error

This fixes the "use_ssl value changed, but session already started" error.