fix error with jquery element