Bug fix for degenerate case for weight with no weighted cases