Losing medal and ranking without even get to attack...

It does happen multiple times just now. Run out of food, click to to get free food, it freeze, and when I get to sign in, I lost medals and ranking. I tried again, same result, and tried again same result, lost 60 medals trying to get food .Get this game fix right.