Fixed a bug in where renaming a component to an existing name wouldn't check if the target name exists