bug fix. set default weight to 0.0