small fixes for nameanalysis