* fixed bug in calcaluting weight adjustments