Corrected dysfunctionning loops