fix for NA problem in Weight column