Fixed problem with JS error.