Thanks for the report. This is a known issue that we'll have fixed very soon.
You can prevent this from happening by making sure that you look at the level up screen. Note that you can resolve this when it happens by restarting the app. This will make sure that you have the correct energy values from our server.
Sorry for the inconvenience!