getWeight bug