fix a js, but not well