I had this problem as well. Took me a while to figure it out but all you have to do to prevent this is to make sure you are using the correct firmware files. Use the same one that originally came with the phone. For example, if it is R8BE001, be sure to use a R8BE001 one.