Fix bug introduced by upgrading jQuery.