Fixed bug with jQuery fallback