Fixed bug where animation would stop if app entered background