fixed some jquery issues