Fix NOR as pointed out by beannaich.