Removed loops appearinf when none present