Fixed JS error