Here's a way to fix the previous problem without changing jQuery