removed typo error
pmd fixes for NpcFactory