fix small client code bug