try to correct js error "clients is undefined"