Assignment to mods where it was defaulting to None

This fixes an assignment to mods where it was defaulting to None
Fix #16671