Fixed a derp of not changing the variable

parts[1] is a leftover from back hen the input came as args, changed it
to name as it should be