Fixed JS error.