fix weights