Isn't infinitely restarting. Still don't know the cause