I had a rooted M8, however something was going wrong as it constantly rebooted. So I did a factory reset and that fixed the problem. However now it won't root for some reason. I have TWRP recovery and flashed the root file however when I do root checker it stated that I do not have root access. Anyone know what's wrong?