fix CompensationWeight() issues