Fix bug in parameterizing name