fix collaboration js bug