fixed edit bug of sprint in JS version