fixes #142

Applying jQuery patch http://bugs.jquery.com/ticket/13803