javascript bug fixed.