Fix jquery bugs.