Fix error if name had period

I'm actually not sure what's happening here yet, but it's something I
will research when I have time.