fix null string bug at client side