fixed bug with jquery