Bug correction in JS combination