fixed bug double js