fixed name stripping bug