Fixed bug with jquery