Fixed undefined client