fix double js bug