set default weight to 1.
fix