Fixing jQuery Bug