Fixed for compatibility with jQuery 1.10.2