Replace warn with assert to match the others assertions