bug fix for jQuery