try to fix javascrip error