Fixed the final display of the weights.