fix javascrip issue