Fixed a jquery bug