fix js  bug