A comment on the Nielsen-Ninomiya theorem