Fix common bugs adjust weights.