fix typo for frame number checking
forgot to init the frame count at client side