crash fix in zedsocket