BUGFIX: getWeights was failing due to lack of NA values. Fixed now