Fixed appDidBecomeActive issue