fixed client bug