fix when ssl is off