Corrected rename function so that we can call several sections with the same name