Removed invalid loop