Corrected jQuery bug

Corrected jQuery bug