fixed bug from jquery update