Correct position of weight parameter.