fixed a N vs n bug