fix js bug2