fix to avoid ssl databag exception