correction bug js simul lockunlonk function