fixed javascript error.