Fixed precision error on weight