fix some jquery issues