Fixed major bug in SSL