bug fix client js