I can't help you i'm afraid, But after you have sorted out all your favourites/ groups again make a backup, that way all your settings will be saved and the next time it happens you just use the backup. But somebody on this forum will possibly have the answer to your problem.