Removed unnecessary parameter in replaceLoops()

Removed unnecessary parameter ‘aether’ in replaceLoops()