I tried restoring my ROOTed phone back to factory settings but I am getting the error message "Unfortunately, settings has stopped working" after factory reset. I believe this may be due to the fact that I deleted certain bloatware. How can I resolve this issue? I've tried using Lockifyed's solution but it does not detect my device, not sure if my USB debugging was on prior. Please help!