Fixing '.' at the end of the name list