Fixed parse_weight.