fix NFA, scaladoc