- fixed the javascript bug