Fixed a javascript bug.