Fix refreshing animation after restoring application, when it was moved out from memory