device stuck on an endless restart loop