Fixed a bug in jquery.