Fix the weight order.