Loop problems

Thanks that fixed it unsure as to why that would cause a reset still but all is good