We added various ways in order to confirm your actions and therefore to minimize waste of gems in the game. When you buy something in the game for gems, always a notice appears asking for your confirmation. Unfortunately, from there on we can not help on restoring wasted gems.