We shouldn't forget to reset the didEnterBackgroundState flag