Fix JS error.