Fixed bug requiring a jquery element