Fix resume on Windows Phone.