Javascript bug fix.