solve a bug when calculate weight